package Test1;

public class Customer extends  Person{
    public Customer(){
        this("", "", "");
    }
    public Customer(String name, String address, String phoneNumber)
    {
        this.name = name;
        this.address = address;
        this.phoneNumber = phoneNumber;
    }
    public String getName(){
        return this.name;
    }
    public String getAddress()
    {
        return this.address;
    }
    public String getPhoneNumber(){
        return this.phoneNumber;
    }
    public void setName(String name){
        this.name = name;
    }
    public void setAddress(String  address){
        this.address = address;
    }
    public void setPhoneNumber(String phoneNumber)
    {
        this.phoneNumber = phoneNumber;
    }
    public void customerPrint(){
        System.out.println("这个顾客的名字是："+this.getName()+"  "+"家庭住址:"+this.getAddress()+"   "+"电话号码:"+this.getPhoneNumber());
    }
}


